package com.homestay.service;

import com.homestay.beans.Books;
import com.homestay.beans.Order;
import com.homestay.exception.UserException;

import java.util.List;

public interface BooksService {

    int add(Books books);

    List<Order> query(String name, String card, String phone);

    int delete(String id) throws UserException;

    Order queryById(String id);

    int update(Books books);

    int updateExitTime(String id);

    Books queryBookById(String id);
}
